package org.smth.search.config.impl;

import com.google.inject.Singleton;

import org.smth.search.config.BoardConfig;

@Singleton
public class HardCodeBoardConfig implements BoardConfig {

	public String getBoardUrl(String board) {
		return "http://www.newsmth.net/bbsdoc.php?board=" + board.toLowerCase();
	}

	public String getBoardUrl(String board, int page) {
		return "http://www.newsmth.net/bbsdoc.php?board=" + board.toLowerCase() + "&page=" + page;
	}

	public String getPostUrl(String boardId, int postId) {
		return "http://www.newsmth.net/bbscon.php?bid=" + boardId + "&id=" + postId;
	}
}
